]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
appDisplay: Go to item page for items dropped on page indicators
authorMohamed Abdulla <mohamed.abdulla@neurallyenabled.com>
Wed, 25 Mar 2026 18:42:33 +0000 (21:42 +0300)
committerMarge Bot <marge-bot@gnome.org>
Tue, 14 Apr 2026 13:25:40 +0000 (13:25 +0000)
The page could be full so the item is dropped on the page after it instead.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4153>

js/ui/appDisplay.js

index 0769ef65bf54295a2e276e4cc8238be05267de30..105796dc28cd45d52aa80b48c725be4571a0ce12 100644 (file)
@@ -1007,7 +1007,8 @@ var BaseAppView = GObject.registerClass({
             const position = page < nPages ? -1 : 0;
 
             this._moveItem(source, page, position);
-            this.goToPage(page);
+            const realPage = this._grid.getItemPage(source); // could be the next page, if the requested one was full
+            this.goToPage(realPage);
         } else if (this._delayedMoveData) {
             // Dropped before the icon was moved
             const {page, position} = this._delayedMoveData;